#{extends '/temp/main.html'/}
#{set title:'首页'/}
<div class="page">
    <section class="user_index scroll_y">
        <div class="user_tit">
            <div class="kh">业务员助手</div>
            <div class="tit">
                <img src="${webUser?.headImgUrl}">
                <h3>${webUser?.nickName}</h3>
            *{<p>13561997598</p>}*
            </div>
            <!--<div class="ew"><a href="#" class="icon icon-code"></a></div>-->
        </div>

        <div class="list-block">
            <ul>
                <li>
                    <a href="/personal/currentOrderList" class="item-link item-content">
                        <div class="item-inner">
                            <div class="item-title">
                                <span>今日订单：<i>${dayOrderAmount.format('0.00')}</i>元</span><span>提成：<i>${dayPoportions.format('0.00')}</i>元</span>
                            </div>
                            <div class="item-after"><em class="gray">查看</em></div>
                        </div>
                    </a>
                </li>
            #{if indexList != null && indexList.size() > 0}
                #{list indexList ,as:'customOrder'}
                    <li class="item-content">
                        <div class="item-inner">
                            <div class="item-title"><span>${customOrder?.user_name}
                                ：<em>${customOrder?.amount.format('0.00')}</em>元</span><span>提成：<em>${customOrder?.order_poportions.format('0.00')}</em>元</span>
                            </div>
                        </div>
                    </li>
                #{/list}
            #{/if}
            </ul>
            <ul>

                <li class="item-content">
                    <div class="item-inner">
                        <div class="item-title"><span>本周提成：<em style="color: #f60;">${weekPoportions.format('0.00')}</em>元 </span></div>
                        <div class="item-after"></div>
                    </div>
                </li>

                <li class="item-content">
                    <div class="item-inner">
                        <div class="item-title"><span>本月提成：<em style="color: #f60;">${monthPoportions.format('0.00')}</em>元 </span></div>
                        <div class="item-after"></div>
                    </div>
                </li>

            *{<li>}*
            *{<a href="withdrawals.html" class="item-link item-content">}*
            *{<div class="item-inner">}*
            *{<div class="item-title"><span>可提现金额：<em style="color:#00B83F;">2125</em>元</span></div>}*
            *{<div class="item-after"><em class="gray">去提现</em></div>}*
            *{</div>}*
            *{</a>}*
            *{</li>}*
            </ul>

        </div>

    </section>
#{include '/temp/bottom.html'/}
</div>

<script>
    $(function () {
        $.init();
    });
</script>
